/**
 *
 */
package de.cbf.cam.dsa.rcp.model.entities;

import de.cbf.util.uuidheader.entities.UUIDHeader;
import de.cbf.util.uuidheader.exceptions.EntityMergeException;

/**
 * @author Surfer
 *
 */
public class MonthDSA extends UUIDHeader{

	protected MonthDSAEnum monthEnum;

	public String getName() {
		if(monthEnum != null){
			return monthEnum.getName();
		}
		return "No month Enum";
	}

	public void setMonthEnum(MonthDSAEnum _monthEnum) {
		this.monthEnum = _monthEnum;
	}

	public int getAmmountOfDaysInMonth() {
		if(monthEnum != null){
			return MonthDSAEnum.getDaysInMonth(monthEnum);
		}else{
			return -1;
		}
	}

	@Override
	protected void doMergeDataFrom(UUIDHeader entity, boolean i_am_older)
			throws EntityMergeException {
		throw new EntityMergeException("not implemented yet");

	}

}
